import { createApp } from "vue"
import App from "./App.vue"
import "./registerServiceWorker"
import router from "./router"
import store from "./store"
import { Icon } from 'vant'
// svg处理
import SvgIcon from '@/components/SvgIcon'// svg组件
const requireAll = requireContext => requireContext.keys().map(requireContext)
const req = require.context('./assets/icons/svg', false, /\.svg$/)
requireAll(req)
createApp(App)
  .use(Icon)
  .use(store)
  .use(router)
  .component('svg-icon', SvgIcon)
  .mount("#app")